<?php
namespace BP\GPM;
require_once("BP/En/Map.php");
class DeptEmpStation extends EntityMyPK {
	public function getHisUAC () 
	{
		$uac = new UAC();
		$uac->OpenForSysAdmin();
		return $uac;
	}
	public function getFK_Emp () 
	{
		return $this->GetValStringByKey(DeptEmpStationAttr::$FK_Emp);
	}
	public function setFK_Emp ($value) // [String value]
	{
		$this->SetValByKey(DeptEmpStationAttr::$FK_Emp, $value);
		$this->setMyPK((((($this->getFK_Dept() . "_") . $this->getFK_Emp()) . "_") . $this->getFK_Station()));
	}
	public function getFK_Dept () 
	{
		return $this->GetValStringByKey(DeptEmpStationAttr::$FK_Dept);
	}
	public function setFK_Dept ($value) // [String value]
	{
		$this->SetValByKey(DeptEmpStationAttr::$FK_Dept, $value);
		$this->setMyPK((((($this->getFK_Dept() . "_") . $this->getFK_Emp()) . "_") . $this->getFK_Station()));
	}
	public function getFK_StationT () 
	{
		return $this->GetValStringByKey(DeptEmpStationAttr::$FK_Station);
	}
	public function getFK_Station () 
	{
		return $this->GetValStringByKey(DeptEmpStationAttr::$FK_Station);
	}
	public function setFK_Station ($value) // [String value]
	{
		$this->SetValByKey(DeptEmpStationAttr::$FK_Station, $value);
		$this->setMyPK((((($this->getFK_Dept() . "_") . $this->getFK_Emp()) . "_") . $this->getFK_Station()));
	}
	public static function constructor__ () 
	{
		$me = new self();
		return $me;
	}
	public function getEnMap () 
	{
		if (($this->get_enMap() != NULL))
		{
			return $this->get_enMap();
		}
		$map = new Map("Port_DeptEmpStation");
		$map->setEnDesc("部门岗位人员对应");
		$map->AddTBStringPK("MyPK", NULL, "主键MyPK",  FALSE ,  TRUE , 1, 150, 10);
		$map->AddTBString(DeptEmpStationAttr::$FK_Dept, NULL, "部门",  FALSE ,  FALSE , 1, 50, 1);
		$map->AddTBString(DeptEmpStationAttr::$FK_Station, NULL, "岗位",  FALSE ,  FALSE , 1, 50, 1);
		$map->AddTBString(DeptEmpStationAttr::$FK_Emp, NULL, "操作�?",  FALSE ,  FALSE , 1, 50, 1);
		$this->set_enMap($map);
		return $this->get_enMap();
	}
	protected function beforeUpdateInsertAction () 
	{
		$this->setMyPK((((($this->getFK_Dept() . "_") . $this->getFK_Emp()) . "_") . $this->getFK_Station()));
		return parent->beforeUpdateInsertAction();
	}
}
?>
